package com.jy.api.signUpReq.promotion;

import com.jy.api.controller.pos.PosPrintConfigController;
import com.jy.api.domain.DiscountType;
import com.jy.api.domain.Product;
import com.jy.api.domain.PromotionType;
import com.jy.api.domain.TimeType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DisPromotionEditParams {

    //名字
    private String name;

    private String storeId;
    //折扣类型
    private DiscountType discountType;
    //折扣多少折
    private int discount;
    //减少金额
    private int reduceAmount;
    //时间类型
    private TimeType timeType;
    //开始时间  类型2020-02-04
    private String begin;
    //结束时间  类型2020-06-04
    private String end;
    //开始小时时间  00：00：00
    private String beginHour;
    //结束小时时间  08：00：00
    private String endHour;
    //周几  "星期一,星期二"
    private String week;

    private List<DiscountProduct> products = new ArrayList<>();

    private PromotionType promotionType;

    @Data
    public static class DiscountProduct{
        private String productId;

        private int discountCommission;
    }















}
